package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Property;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    //创建接口  使用注解开发的方式
    @Select("SELECT " +
            "id , username, password " +
            "FROM user " +
            "WHERE username = #{username} AND password = #{password}")
    public User getUserByNameAndPassword(@Param("username") String username ,
                                         @Param("password") String password);


}
